package com.bitmain.mmst.domain;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class DetectionShelf {

	private int numAll;
	private int numDetect;
	private int numDetail;
	private int numPassed;
	private int numUnpassed;
	private int numFailure;
	private List<DetectionMiner> miners;
	
	public void addMiner(DetectionMiner miner) {
		if (miners == null) {
			miners = new CopyOnWriteArrayList<>();
		}
		miners.add(miner);
	}

	public int getNumAll() {
		return numAll;
	}

	public void setNumAll(int numAll) {
		this.numAll = numAll;
	}

	public int getNumDetect() {
		return numDetect;
	}

	public void setNumDetect(int numDetect) {
		this.numDetect = numDetect;
	}

	public int getNumDetail() {
		return numDetail;
	}

	public void setNumDetail(int numDetail) {
		this.numDetail = numDetail;
	}

	public int getNumPassed() {
		return numPassed;
	}

	public void setNumPassed(int numPassed) {
		this.numPassed = numPassed;
	}

	public int getNumUnpassed() {
		return numUnpassed;
	}

	public void setNumUnpassed(int numUnpassed) {
		this.numUnpassed = numUnpassed;
	}

	public int getNumFailure() {
		return numFailure;
	}

	public void setNumFailure(int numFailure) {
		this.numFailure = numFailure;
	}

	public List<DetectionMiner> getMiners() {
		return miners;
	}

	public void setMiners(List<DetectionMiner> miners) {
		this.miners = miners;
	}
	
}
